package com.sjgl.esdn.service;

import com.sjgl.esdn.domain.entity.User;
import com.sjgl.esdn.domain.entity.uc.*;

import java.util.List;

/**
 * @Author: cjb
 * @Date: 2022-09-01 09:33
 **/
public interface UserCenterService {

    /**
     * 通过id查询用户密码
     *
     * @param userId 用户id
     * @return {@link User}
     */
    public String selectUserPasswordById(Long userId);

    public UserInfo selectUserInfoById(Long userId);

    public List<MyMessage> getMyMessage(Long userId);

    public List<RecentBrowse> getRecentBrowseFile(Long userId);

    public void updateUserInfo(UserInfo userInfo);

    public List<UploadFile> getUploadFile(Long userId);

    public List<BrowseHistory> getBrowseHistory(Long userId);

    public List<MyDownloadFile> getMyDownLoadFile(Long userId);

    public String getAvatar();

    public String getColumnImg(Long columnId);

    public void updateUploadFile(UploadFile uploadFile,List<Long> deptIdList);

    public void updateMyBlog(UCBlog ucBlog,List<Long> deptIdList);

    public List<UCBlog> getUCBlogs(Long userId);

    public List<MyColumn> getMyColumn(Long userId);

    public MyColumnInfo getMyColumnInfo(Long columnId);

    public void createMyColumn(Long userId,String columnName,String columnIntro);

}
